<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<title>后台管理</title>
		<link rel="stylesheet" th:href="@{/static/commen/css/layui.css}" media="all">
		<link rel="stylesheet" th:href="@{../../static/back/css/admin.css}" media="all">
	</head>
	<body class="layui-layout-body">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<div class="layui-logo">后台管理</div>
				<!-- 头部区域（可配合layui已有的水平导航） -->
				<ul class="layui-nav layui-layout-left">
					<li class="layui-nav-item layui-this" data-nav="1" ><a href="javascript:;">系统管理</a></li>
<!--					<li class="layui-nav-item" th:data-nav="${loginUser.roleId == '1'?'2':'1'}"><a href="javascript:;">内容管理</a></li>-->
				</ul>
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item">
						<a href="javascript:;">
							<img th:src="${loginUser.avatarUrl}" class="layui-nav-img">
							<span th:text="${loginUser.realName}"></span>
						</a>
						<dl class="layui-nav-child">
							<dd><a th:href="@{/logout}">退出登录</a></dd>
						</dl>
					</li>
				</ul>
			</div>
			<div class="layui-side layui-bg-black">
				<div class="layui-side-scroll"  id="layui_nav_left_1">
<!--                    th:if="${loginUser != null && loginUser.roleId == '1'}"-->
					<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
					<ul class="layui-nav layui-nav-tree"  lay-filter="test">
						<li class="layui-nav-item layui-nav-itemed" th:if="${loginUser.roleId == '1'}">
							<a class="" href="javascript:;">网站设置</a>
							<dl class="layui-nav-child">
								<dd><a href="javascript:;" data-url="/back/plate_list">板块列表</a></dd>
							</dl>
						</li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;">信息管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" data-url="personal-information">个人基本</a></dd>
                            </dl>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;">文章管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" data-url="article_category-list">文章类型</a></dd>
                                <dd><a href="javascript:;" data-url="article-list">文章列表</a></dd>
                            </dl>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;">问答管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" data-url="answer-questions-list">问答列表</a></dd>
                            </dl>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;">资源管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" data-url="resource-list">资源列表</a></dd>
                            </dl>
                        </li>
                        <li class="layui-nav-item layui-nav-itemed">
                            <a class="" href="javascript:;">文章管理</a>
                            <dl class="layui-nav-child">
                                <dd><a href="javascript:;" data-url="article_category-list">文章类型</a></dd>
                                <dd><a href="javascript:;" data-url="article-list">文章列表</a></dd>
                            </dl>
                        </li>
						<li class="layui-nav-item layui-nav-itemed" th:if="${loginUser.roleId == '1'}">
							<a href="javascript:;">系统设置</a>
							<dl class="layui-nav-child">
								<dd><a href="javascript:;" data-url="/back/user_list">用户列表</a></dd>
								<dd><a href="javascript:;" data-url="/back/role_list">角色列表</a></dd>
								<dd><a href="javascript:;" data-url="/back/permission_list">权限列表</a></dd>
							</dl>
						</li>
						<li class="layui-nav-item layui-nav-itemed" th:if="${loginUser.roleId == '1'}">
							<a href="javascript:;">其他设置</a>
							<dl class="layui-nav-child">
								<dd><a href="javascript:;" data-url="enclosure-list.html">附件列表</a></dd>
							</dl>
						</li>
					</ul>
				</div>
<!--				<div class="layui-side-scroll" th:id="'layui_nav_left_' + ${loginUser.roleId == '1' ? '2':'1'}">-->
<!--					&lt;!&ndash; 左侧导航区域（可配合layui已有的垂直导航） &ndash;&gt;-->
<!--					<ul class="layui-nav layui-nav-tree"  lay-filter="test">-->
<!--                        <li class="layui-nav-item layui-nav-itemed">-->
<!--                            <a class="" href="javascript:;">信息管理</a>-->
<!--                            <dl class="layui-nav-child">-->
<!--                                <dd><a href="javascript:;" data-url="personal-information">个人基本</a></dd>-->
<!--                            </dl>-->
<!--                        </li>-->
<!--						<li class="layui-nav-item layui-nav-itemed">-->
<!--							<a class="" href="javascript:;">文章管理</a>-->
<!--							<dl class="layui-nav-child">-->
<!--								<dd><a href="javascript:;" data-url="article_category-list">文章类型</a></dd>-->
<!--								<dd><a href="javascript:;" data-url="article-list">文章列表</a></dd>-->
<!--							</dl>-->
<!--						</li>-->
<!--                        <li class="layui-nav-item layui-nav-itemed">-->
<!--                            <a class="" href="javascript:;">问答管理</a>-->
<!--                            <dl class="layui-nav-child">-->
<!--                                <dd><a href="javascript:;" data-url="answer-questions-list">问答列表</a></dd>-->
<!--                            </dl>-->
<!--                        </li>-->
<!--                        <li class="layui-nav-item layui-nav-itemed">-->
<!--                            <a class="" href="javascript:;">资源管理</a>-->
<!--                            <dl class="layui-nav-child">-->
<!--                                <dd><a href="javascript:;" data-url="resource-list">资源列表</a></dd>-->
<!--                            </dl>-->
<!--                        </li>-->
<!--					</ul>-->
<!--				</div>-->
			</div>
			<div class="layui-body" id="LAY_app_body">
				<div class="layui-tabsbody-item layui-show">
					<iframe th:src="@{/back/main}" frameborder="0" class="layui-iframe" style="padding: 15px;"></iframe>
				</div>
			</div>
			<div class="layui-footer">
				<!-- 底部固定区域 -->
				© 后台管理
			</div>
		</div>
	</body>
</html>
<script th:src="@{../../static/back/js/jquery-3.4.1.min.js}"></script>
<script th:src="@{/static/commen/layui.js}"></script>
<script th:src="@{../../static/back/js/admin.js}"></script>